module ApplicationHelper
  def admin?
    controller.class.name.split('::').first == 'Admin'
  end

  def glyphicon_span(name)
    "<span class=\"glyphicon glyphicon-#{name}\"></span>".html_safe
  end
end
